Object Orientation in Z
نویسنده
چکیده
Object-ZZ2, 3, 4] is an extension of the formal speciication language ZZ5, 7, 8] to accommodate object orientationn6, 1]. The main reason for this extension is to improve the clarity of large speciications through enhanced structuring. A Z speciication typically deenes a number of state and operation schemas. A state schema groups together variables and deenes the relationship that holds between their values. At any instant, these variables deene the state of that part of the system which they model. An operation schema deenes the relationship between thèbefore' andàfter' states corresponding to one or more state schemas. Therefore, inferring which operation schemas may aaect a particular state schema requires examining the signatures of all operation schemas. In large speciications this is impracticable. Conventions, such as chapters, group states and operations informally, but cannot enforce structure. Object-Z overcomes this problem by connning individual operations to refer to one state schema. The deenition of a state schema with the deenitions of its associated operations (and those of other components to be detailed later) constitute a class. A class is a template for objects of that class: for each such object, its states are instances of the class' state schema and its individual state transitions conform to individual operations of the class. An object is said to be an instance of a class and to evolve according to the deenitions of its class. A class may specify part of a system, so that the potential behaviour of that part may be considered and understood in isolation. Complex classes can be speciied to inherit other classes, or to include references to objects. These structuring mechanisms are called inheritance and instantiation respectively. An Object-Z speciication of a system typically includes a number of class deenitions related by inheritance and instantiation which build towards a class representing the entire system. Section 1.1.2 introduces the syntax of classes and outlines some semantic issues.
منابع مشابه
A formal framework for modelling and analysing mobile systems
This paper presents a formal framework for modelling and analysing mobile systems. The framework comprises a collection of models of the dominant design paradigms which are readily extended to incorporate details of particular technologies, i.e., programming languages and their run-time support, and applications. The modelling language is Object-Z, an extension of the well-known Z specification...
متن کاملUsing Object-z to Specify Object-oriented Programming Languages Using Object-z to Specify Object-oriented Programming Languages
In this paper, we present a case study for using formal object-oriented speciication languages, such as Object-Z, to specify the semantics of object-oriented programming languages. The key idea in this case study is to model language constructs, such as expressions, statements, methods and classes, as objects and to specify the semantics of each language construct using an Object-Z class. This ...
متن کاملAccuracy improvement of Best Scanline Search Algorithms for Object to Image Transformation of Linear Pushbroom Imagery
Unlike the frame type images, back-projection of ground points onto the 2D image space is not a straightforward process for the linear pushbroom imagery. In this type of images, best scanline search problem complicates image processing using Collinearity equation from computational point of view in order to achieve reliable exterior orientation parameters. In recent years, new best scanline sea...
متن کاملFrom Z to BON/Eiffel
It is shown how to make a transition from the Z formal notation [3] to the Business Object Notation (BON) [4]. It is demonstrated that BON has the expressive power of Z, with the additional advantages of object-orientation and a supporting seamless development method. The transition is illustrated for some widely used Z constructs. The translation lays the groundwork for a semi-automated tool f...
متن کاملStatistical Background Modeling Based on Velocity and Orientation of Moving Objects
Background modeling is an important step in moving object detection and tracking. In this paper, we propose a new statistical approach in which, a sequence of frames are selected according to velocity and direction of some moving objects and then an initial background is modeled, based on the detection of gray pixel's value changes. To have used this sequence of frames, no estimator or distribu...
متن کاملObject-Oriented Operations Have Two Parts
This paper presents a model for object-oriented operations in which operations consist of two parts: an internal state transition and an external interaction with other objects. We first present a simple version of the two part model, and explain how this model has been used to develop a strictly modular, compositional semantics for a simple sub-language of Object-Z. Differences between the ope...
متن کامل